<template>
    <div class="map-view">
      <div class="left">
        <BMapScatter></BMapScatter>
      </div>
      <div class="right">
       <el-card shadow="hover">
         <template #header>
           <div class="title">用户月同比增长</div>
         </template>
         <template>
           <div class="chart-wrapper">
             <LiquidFill/>
           </div>
         </template>
       </el-card>
        <el-card shadow="hover">
          <template #header>
            <div class="title">热门搜索</div>
          </template>
          <template>
            <div class="chart-wrapper">
              <WordCloud/>
            </div>
          </template>
        </el-card>
      </div>
    </div>
</template>

<script>
import BMapScatter from '../BMapScatter'
import LiquidFill from '../LiquidFill'
import WordCloud from '../WordCloud'

export default {
  name: 'MapView',

  components: { BMapScatter, LiquidFill, WordCloud }
}
</script>

<style  lang='scss' scoped>
.map-view{
  display: flex;
  margin-top: 20px;
  .left{
    width: 80%;
    height: 600px;
    background-color: #fff;
  }
  .right{
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px;
    margin-left: 20px;
    .title{

      display: flex;
      align-items: center;
      height: 60px;
      box-sizing: border-box;
      border-bottom: 1px solid #eee;
      font-weight: 500;
      font-size: 14px;
      padding: 0 20px;
    }
    .chart-wrapper{
      width: 100%;
      height: 190px;
    }
  }
}
</style>
